package com.ssd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ssd.entity.Job;
import com.ssd.mapper.JobMapper;
import com.ssd.service.JobService;
import org.springframework.stereotype.Service;

/**
 * JobServiceImpl 类
 *
 * @title:
 * @requirement:
 * @ClassName:
 * @author:首雯静
 * @creationTime:2024/12/20/10:29
 * @version: 1.0
 */
@Service
public class JobServiceImpl extends ServiceImpl<JobMapper, Job> implements JobService {
    @Override
    public Job getById(Integer id) {
        return baseMapper.selectById(id);
    }

    @Override
    public boolean updateJob(Job job) {
        return baseMapper.updateById(job)>0;
    }
}
